<?php

/*
 * inc/toolbar.php
 *
 *
 * Needs better doc
 */

class Toolbar
{

    var $toolbar;
    var $empty = true;

    function add($title, $href, $img='#noImg', $desc='')
    {
        $this->empty = false;
        $this->toolbar = array(
            'href' => $href,
            'title' => $title,
            'tooltip' => $desc,
            'img' => $img
        );
        return true;
    }

}

$toolbar = new Toolbar();

$smarty->assign_by_ref('toolbar', $toolbar);
?>